import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import path from "path";
export default defineConfig({
  plugins: [vue(), vueJsx()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"), // 确保 @ 指向 src 目录
    },
  },
  css: {
    preprocessorOptions: {
      less: {},
    },
  },
  server: {
    proxy: {
      "/api": {
        target: "https://from-master.jw100.com.cn",
        changeOrigin: true,
      },
    },
  },
});
